﻿using System;
using System.Collections.Generic;

namespace DbMetadata
{
    /// <summary>
    /// Provides metadata information about a primary key.
    /// </summary>
    [Serializable]
    public class DbPrimaryKeyInfo : DbKeyInfo
    {
        private readonly IList<DbColumnInfo> _columns = new List<DbColumnInfo>();

        /// <summary>
        /// Gets a collection of <see cref="DbColumnInfo"/> instances that represents the primary key.
        /// </summary>
        public IList<DbColumnInfo> Columns
        {
            get { return _columns; }
        }
    }
}
